import Request from "@/utils/request.js"
let request = new Request().http

export function bindStu(data) {
    return request({
        url: "/lib/stu/bind",
        method: "PUT",
        data: data,
    })
}

export function getStu(stuId) {
    return request({
        url: "/lib/stu/" + stuId,
        method: "GET"
    })
}
// 查询学生信息列表
export function listStu(query) {
    return request({
        url: '/lib/stu/list',
        method: 'get',
        params: query
    })
}


// 新增学生信息
export function addStu(data) {
    return request({
        url: '/lib/stu',
        method: 'post',
        data: data
    })
}

// 修改学生信息
export function updateStu(data) {
    return request({
        url: '/lib/stu',
        method: 'put',
        data: data
    })
}

// 删除学生信息
export function delStu(stuId) {
    return request({
        url: '/lib/stu/' + stuId,
        method: 'delete'
    })
}
